.class Lcom/estrongs/android/pop/app/leftnavigation/LeftNaviManagerActivity$b;
.super Landroid/os/Handler;
.source "LeftNaviManagerActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/pop/app/leftnavigation/LeftNaviManagerActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = "b"
.end annotation


# instance fields
.field private a:Ljava/lang/ref/WeakReference;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ref/WeakReference<",
            "Landroid/widget/ExpandableListView;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method private constructor <init>(Landroid/widget/ExpandableListView;)V
    .locals 1

    .line 2
    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    .line 3
    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/leftnavigation/LeftNaviManagerActivity$b;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method

.method synthetic constructor <init>(Landroid/widget/ExpandableListView;Lcom/estrongs/android/pop/app/leftnavigation/LeftNaviManagerActivity$a;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/leftnavigation/LeftNaviManagerActivity$b;-><init>(Landroid/widget/ExpandableListView;)V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 5

    .line 1
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    .line 2
    iget v0, p1, Landroid/os/Message;->what:I

    .line 3
    iget v1, p1, Landroid/os/Message;->arg1:I

    .line 4
    iget p1, p1, Landroid/os/Message;->arg2:I

    .line 5
    iget-object p1, p0, Lcom/estrongs/android/pop/app/leftnavigation/LeftNaviManagerActivity$b;->a:Ljava/lang/ref/WeakReference;

    if-nez p1, :cond_0

    return-void

    .line 6
    :cond_0
    invoke-virtual {p1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Landroid/widget/ExpandableListView;

    if-nez p1, :cond_1

    return-void

    :cond_1
    const/16 v2, 0x67

    if-ne v0, v2, :cond_6

    .line 7
    invoke-virtual {p1, v1}, Landroid/widget/ExpandableListView;->isGroupExpanded(I)Z

    move-result v0

    xor-int/lit8 v0, v0, 0x1

    .line 8
    invoke-virtual {p1}, Landroid/widget/ExpandableListView;->getExpandableListAdapter()Landroid/widget/ExpandableListAdapter;

    move-result-object v2

    check-cast v2, Lcom/estrongs/android/pop/app/leftnavigation/g0;

    const/4 v3, 0x0

    .line 9
    :goto_0
    invoke-virtual {v2}, Lcom/estrongs/android/pop/app/leftnavigation/g0;->getGroupCount()I

    move-result v4

    if-ge v3, v4, :cond_5

    if-ne v3, v1, :cond_3

    if-eqz v0, :cond_2

    .line 10
    invoke-virtual {p1, v1}, Landroid/widget/ExpandableListView;->expandGroup(I)Z

    goto :goto_1

    .line 11
    :cond_2
    invoke-virtual {p1, v1}, Landroid/widget/ExpandableListView;->collapseGroup(I)Z

    goto :goto_1

    .line 12
    :cond_3
    invoke-virtual {p1, v3}, Landroid/widget/ExpandableListView;->isGroupExpanded(I)Z

    move-result v4

    if-eqz v4, :cond_4

    .line 13
    invoke-virtual {p1, v3}, Landroid/widget/ExpandableListView;->collapseGroup(I)Z

    :cond_4
    :goto_1
    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    .line 14
    :cond_5
    invoke-virtual {v2}, Landroid/widget/BaseExpandableListAdapter;->notifyDataSetChanged()V

    :cond_6
    return-void
.end method
